package com.yitiao.designmodel.behave.chain.ext;

import java.util.ArrayList;
import java.util.List;

public class MainTest {
    public static void main(String[] args) {
        HttpFilter httpFilter = new HttpFilter();
        EncodingFilter encodingFilter = new EncodingFilter();
        FilterChain chain = new FilterChain();
        chain.addFilter(httpFilter);
        chain.addFilter(encodingFilter);
        chain.setTarget(new Target());
        chain.doFilter(new Requset("req"),new Response("res"),chain);
    }
}
